<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改信标数据明细')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-realtimedata-edit" th:object="${rpRealtimedata}">
            <input name="ID" th:field="*{ID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">信标数据主键：</label>
                <div class="col-sm-8">
                    <input name="rpId" th:field="*{rpId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计激活ID：</label>
                <div class="col-sm-8">
                    <input name="rpRlid" th:field="*{rpRlid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">厂房编码：</label>
                <div class="col-sm-8">
                    <input name="rpPlant" th:field="*{rpPlant}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计编号：</label>
                <div class="col-sm-8">
                    <input name="rpCode" th:field="*{rpCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计IP：</label>
                <div class="col-sm-8">
                    <input name="rpIp" th:field="*{rpIp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计当前电量：</label>
                <div class="col-sm-8">
                    <input name="rpPower" th:field="*{rpPower}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计编码：</label>
                <div class="col-sm-8">
                    <input name="rpDosimeter" th:field="*{rpDosimeter}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实时剂量值：</label>
                <div class="col-sm-8">
                    <input name="rpDosevalue" th:field="*{rpDosevalue}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实时剂量率值：</label>
                <div class="col-sm-8">
                    <input name="rpDoserate" th:field="*{rpDoserate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">计量报警值：</label>
                <div class="col-sm-8">
                    <input name="rpDosealarm" th:field="*{rpDosealarm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">计量预报警值：</label>
                <div class="col-sm-8">
                    <input name="rpDosewarning" th:field="*{rpDosewarning}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量率报警值：</label>
                <div class="col-sm-8">
                    <input name="rpRatealarm" th:field="*{rpRatealarm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量率预报警值：</label>
                <div class="col-sm-8">
                    <input name="rpRatewarning" th:field="*{rpRatewarning}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙信标点编码：</label>
                <div class="col-sm-8">
                    <input name="rpBluetooth" th:field="*{rpBluetooth}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">适配器数据包实时时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="rpDate" th:value="${#dates.format(rpRealtimedata.rpDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">测量值是否报警：</label>
                <div class="col-sm-8">
                    <input name="rpRatecode" th:field="*{rpRatecode}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/realtimedata";
        $("#form-realtimedata-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-realtimedata-edit').serialize());
            }
        }

        $("input[name='rpDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>